<?php
/**
 * Created by PhpStorm.
 * User: evenvi
 * Date: 16-8-11
 * Time: 上午9:24
 */
use Evenvi\Mqtt;
include "MqttClient.php";


$mqClient = new Evenvi\Mqtt\MqttClient();
$topics['php-topic'] = array("qos"=>0, "function"=>"procmsg");
$mqClient->sub($topics);

